<%= form_for @cultural_heritage_cultural_heritage_pre_register, :html => { :multipart => true } do |f| %>
  <% if @cultural_heritage_cultural_heritage_pre_register.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@cultural_heritage_cultural_heritage_pre_register.errors.count, "error") %> prohibited this cultural_heritage_cultural_heritage_pre_register from being saved:</h2>

      <ul>
      <% @cultural_heritage_cultural_heritage_pre_register.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
  <label>Codigo de Pre Registro (*)</label><br />
    <%= f.text_field :preRegisterRegistrationCode %>
  </div>
  <div class="field">
   <label>Nombre (*)</label><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <label>Descripcion (*)</label><br />
    <%= f.text_field :description %>
  </div>
  <div class="field">
     <label>Encontrado en</label><br />
    <%= f.text_field :foundInId %>
  </div>
  <div class="field">
    <label>Altura </label><br />
    <%= f.text_field :height %>
  </div>
  <div class="field">
    <label>Largo</label><br />
    <%= f.text_field :long %>
  </div>
  <div class="field">
   <label>Ancho </label><br />
    <%= f.text_field :width %>
  </div>
  <div class="field">
   <label>Peso </label><br />
    <%= f.text_field :weight %>
  </div>
  <div class="field">
  <label>Estado (*)</label><br />
    <%= f.select :state, @cultural_heritage_states.collect {|t| [t.name,t.id]}, {:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
    <label>Grupo (*)</label><br />
    <%= f.text_field :group %>
  </div>
  <div class="field">
   <label>Sub Grupo (*)</label><br />
    <%= f.text_field :subGroup %>
  </div>
  <div class="field">
 <label>Tipologia (*)</label><br />
    <%= f.select :tipology,@cultural_heritage_tipologies.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
    <label>Tipo de Institucion Cultural(*)</label><br />
    <%= f.text_field :typeCulturalInstitution %>
  </div>


  <div class="field">
    <label>Institucion Cultural (*)</label><br />
    <%= f.select :culturalInstitution,@lista_instituciones.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  
  <div class="field">
   <label>Periodo(*)</label><br />
    <%= f.select :period,@cultural_heritage_periods.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
 <label>Cultura (*)</label><br />
    <%= f.select :culture,@cultural_heritage_cultures.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
 <label>Estilo (*)</label><br />
    <%= f.select :style,@cultural_heritage_styles.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>

  <div class="field">
   <label>Propietario (*)</label><br />
    <%= f.text_field :owner %>
  </div>
  <div class="field">
    <label> Autor (*)</label><br />
    <%= f.text_field :author %>
  </div>
  <div class="field">
<label>Estado de conservacion</label><br />
    <%= f.select :conservationalState,@cultural_heritage_conservational_states.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
<label>Estado de Integridad</label><br />
    <%= f.select :integrityState,@cultural_heritage_integrity_states.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
<div class="field">
   <label>Imagen</label><br />
    <%= f.file_field :avatar %>
  </div>
  <div class="field">
 <label>Forma</label><br />
    <%= f.select :shape,@cultural_heritage_shapes.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
 <label>Tecnica</label><br />
    <%= f.select :technique,@cultural_heritage_techniques.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <div class="field">
 <label>Tema</label><br />
    <%= f.select :topic,@cultural_heritage_topics.collect {|t| [t.name,t.id]},{:include_blank=>"Seleccione"} %>
  </div>
  <%#*<div class="field">%>
    <%#*<label>Borrado</label><br />%>
    <%#= f.text_field :deleted %>
  <%#*</div>%>
  <div class="actions">
     <%= f.submit "Enviar",:class=> 'button', :onclick => "return confirm('¿Está seguro que desea grabar?' )" %>
  </div>
<% end %>
